home *** CD-ROM | disk | FTP | other *** search
/ Aminet 31 / Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso / Aminet / util / gnu / xpdf-0.8-src.lha / xpdf-0.8-src / ltk / LTKCompoundWidget.cc < prev    next >
C/C++ Source or Header  |  1998-11-28  |  1KB  |  69 lines

  1. //========================================================================
  2. //
  3. // LTKCompoundWidget.cc
  4. //
  5. // Compound widget base class.
  6. //
  7. // Copyright 1997 Derek B. Noonburg
  8. //
  9. //========================================================================
  10.  
  11. #ifdef __GNUC__
  12. #pragma implementation
  13. #endif
  14.  
  15. #include <stdlib.h>
  16. #include <stdarg.h>
  17. #include <stddef.h>
  18. #include <X11/Xlib.h>
  19. #include <X11/Xutil.h>
  20. #include "LTKApp.h"
  21. #include "LTKWindow.h"
  22. #include "LTKBox.h"
  23. #include "LTKCompoundWidget.h"
  24.  
  25. //------------------------------------------------------------------------
  26. // LTKCompoundWidget
  27. //------------------------------------------------------------------------
  28.  
  29. LTKCompoundWidget::LTKCompoundWidget(char *name1, int widgetNum1):
  30.     LTKWidget(name1, widgetNum1) {
  31.   box = NULL;
  32. }
  33.  
  34. LTKCompoundWidget::~LTKCompoundWidget() {
  35.   delete box;
  36. }
  37.  
  38. void LTKCompoundWidget::setParent(LTKWindow *parent1) {
  39.   LTKWidget::setParent(parent1);
  40.   box->setParent(parent1);
  41. }
  42.  
  43. void LTKCompoundWidget::layout1() {
  44.   box->layout1();
  45.   width = box->getWidth();
  46.   height = box->getHeight();
  47. }
  48.  
  49. void LTKCompoundWidget::layout2(int x1, int y1, int width1, int height1) {
  50.   box->layout2(x1, y1, width1, height1);
  51.   LTKWidget::layout2(x1, y1, width1, height1);
  52. }
  53.  
  54. void LTKCompoundWidget::layout3() {
  55.   box->layout3();
  56. }
  57.  
  58. void LTKCompoundWidget::map() {
  59.   box->map();
  60. }
  61.  
  62. void LTKCompoundWidget::redraw() {
  63.   box->redraw();
  64. }
  65.  
  66. void LTKCompoundWidget::redrawBackground() {
  67.   box->redrawBackground();
  68. }
  69.